filechooserwidget: Add GtkFileChooserErrorStack
authorTimm Bäder <mail@baedert.org>
Tue, 9 May 2017 07:52:00 +0000 (09:52 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 18 Jul 2017 19:11:26 +0000 (15:11 -0400)
commit3505e0d6e7c8e414b3c9e4954b7e0f183463b323
treec84ca9c4575bdd81b231f087b7b25313bc2800c3
parent20d47e2a6c41a28c00626f7bbc2375929e9a8be1
filechooserwidget: Add GtkFileChooserErrorStack

Showing all the different errors and warnings when renaming and creating
files/folders without potentially resizing popovers on every keystroke
requires us to know the size of the error messages beforehand, so pack
all of the possible error messages and warnings in labels and those into
a stack. This way we can also neatly crossfade transition between them.

https://bugzilla.gnome.org/show_bug.cgi?id=775636
gtk/Makefile.am
gtk/gtkfilechoosererrorstack.c [new file with mode: 0644]
gtk/gtkfilechoosererrorstackprivate.h [new file with mode: 0644]
gtk/gtkfilechooserwidget.c
gtk/ui/gtkfilechooserwidget.ui